namespace CSharpPro._0916;

public class Phone
{
    // 属性
     string brand ;
     string weigth ;
     long camera ;
     long price ;

    public Phone(string brand, string weigth, long camera, long price)
    {
        this.brand = brand;
        this.weigth = weigth;
        this.camera = camera;
        this.price = price;
    }
    
    
    //方法
    public void PrintMsg()
    {
        Console.WriteLine("该手机的品牌是:" + brand);
        Console.WriteLine("该手机的重量是:" + weigth);
        Console.WriteLine("该手机的像素是:" + camera);
        Console.WriteLine("该手机的价格是" + price);
    }
}